//+--------------------------------------------------------------------
//| Copyright(c) 2012 - an.vuongngocduy					
//| This file is a part of Compact Game Engine (CGE)	
//+--------------------------------------------------------------------
#ifndef __CGE_PAINTEROGL_H__
#define __CGE_PAINTEROGL_H__

#include <Windows.h>
#include <gl\GL.h>
#include <gl\GLU.h>
#include "cgeCommons.h"
#include "cgePainter.h"
#include "cgeCanvas.h"

namespace cge
{
	namespace gfx
	{
		class PainterOgl : public Painter
		{
		public:
			//! Default constructor
			PainterOgl();

			//! Destructor
			~PainterOgl();

			void Initialize(Canvas* canvas);

			void BeginScene();

			void EndScene();
		
		private:
			b8 mFixedPipeLine;
#ifdef WIN32
			HGLRC mOglHandle;
			HDC mDevContext;
#endif
		};
	}
}

#endif//__CGE_PAINTEROGL_H__